package lab01;

/**
 * Created by lenovo on 2017/10/7.
 */
public class Test13 {
    public static void main(String[] args) {
        int b1,b2,b3;
        for (int m=100;m<1000;m++){
            b3=m/100;
            b2=(m%100)/10;
            b1=m%10;
            if ((b3*b3*b3+b2*b2*b2+b1*b1*b1)==m){
                System.out.println(m+"是水仙花数");
            }
        }
    }
}
